from datetime import datetime
import os

import pytest

data_time = datetime.now().strftime('%Y%m%d_%H%M%S')

from tools.log import log,sed_emil

if __name__ == '__main__':
    #master分支修改run.py文件
    log(data_time)

    #生成报告

    #报告

    pytest.main(['./case/test_163.py', '-s', f'--alluredir=allure-results'])
    os.system(f'allure generate allure-results -o ./allure-reoort --clean')

    # sed_emil([f'{data_time}.log',f'{data_time}--allurereport/index.html'])

